package edu.tyut.ncp;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.Bean;
import org.springframework.security.crypto.bcrypt.BCryptPasswordEncoder;
import org.springframework.security.crypto.password.PasswordEncoder;

@SpringBootApplication
@MapperScan(basePackages = "edu.tyut.ncp.dao")
public class NcpApplication {

    public static void main(String[] args) {
        SpringApplication.run(NcpApplication.class, args);
        System.out.println("success");
    }
    @Bean
    PasswordEncoder passwordEncoder (){

        return new BCryptPasswordEncoder();
    }

}
